//
//  ZYCAttendanceRecordModel.m
//  ZDSC
//
//  Created by ZDTX on 2021/8/10.
//

#import "ZYCAttendanceRecordModel.h"

@implementation ZYCAttendanceRecordModel

- (NSString *)attendanceStatusStr{
    NSString *str;
    if ([self.attendanceStatus isEqualToString:@"1"]) {
        str = @"未到";
    }else if ([self.attendanceStatus isEqualToString:@"2"]) {
        str = @"正常";
    }else if ([self.attendanceStatus isEqualToString:@"3"]) {
        str = @"迟到";
    }else{
        str = @"请假";
    }
    return str;
}

- (NSString *)durationLeaveStr{
    NSString *str;
    if ([self.durationLeave isEqualToString:@"1"]) {
        str = @"上午假";
    }else if ([self.durationLeave isEqualToString:@"2"]) {
        str = @"下午假";
    }else if([self.durationLeave isEqualToString:@"3"]){
        str = @"全天假";
    }else{
        str = @"";
    }
    return str;
    
}
@end
